import random
import numpy as np
import torch
import os
#设置随机数种子，保证结果的可复现
def setup_seed(seed):
    np.random.seed(seed)
    random.seed(seed)
    os.environ['PYTHONHASHSEED'] = str(seed)
    torch.manual_seed(seed)

#设置随机数种子
setup_seed(26)
